Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(image): allow empty string for alt and title property #250

Merged

Conversation

ritchiejacobs
Copy link

Resolves #248

src/utils.js Outdated
@@ -172,7 +172,7 @@ function getNullableText(...args) {
if (arg)
return arg;

if (arg === false || arg === null)
if (arg === false || arg === null || arg === '')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been added to the if (arg) condition. I would consider an empty string to be a valid value that people might want to set.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@JorgenEvens JorgenEvens added the bug label Aug 4, 2022
@JorgenEvens JorgenEvens self-assigned this Aug 4, 2022
@JorgenEvens JorgenEvens merged commit af9f8cb into ambassify:master Aug 5, 2022
@JorgenEvens JorgenEvens added this to the 5.0.3 milestone Aug 5, 2022
@JorgenEvens
Copy link
Member

This PR has been included in the 5.0.3 release 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No possibility to set empty alt and title
2 participants